home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
111.C
next >
Wrap
C/C++ Source or Header
|
1993-09-16
|
614b
|
36 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
main()
{
int a=1,b=1,c=2;
a = a*(b+1);
/* same as ... */
a *= b+1;
printf("a is %d\n",a);
a = a%(b+c);
/* same as ... */
a %= b+c;
printf("a is %d\n",a);
a = a+(b+c);
/* same as ... */
a += b+c;
printf("a is %d\n",a);
a = a-(b+c);
/* same as ... */
a -= b+c;
printf("a is %d\n",a);
a = a/(b+c);
/* same as ... */
a /= b+c;
printf("a is %d\n",a);
}